var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

module.exports = router;

// var multiparty=require("multiparty") //图片上传
// var jwt = require("jsonwebtoken") //生成token
//let token="Bearer "+ jwt.sign({username},"ice",{expiresIn:"1h"})  //生成token


//上传图片
// router.post("/add_upload",(req,res)=>{
//   let form=new multiparty.Form()
//   form.uploadDir='upload'
//   form.parse(req,(err,file,imgdata)=>{
//     res.send({
//        path:'http://localhost:3000/'+imgdata.file[0].path,
//     })
//   })
// })